package com.pshcp.common.tool;

import org.springframework.util.ObjectUtils;

public class PhotoTools {

    /**
     * 头像全路径
     * @param prefixPath
     * @param photoPath
     * @return
     */
    public static String getFullPath(String prefixPath, String photoPath){
        if(ObjectUtils.isEmpty(photoPath)){
            return null;
        }
        if(photoPath.startsWith("http")){
            return photoPath;
        }
        return prefixPath + photoPath;
    }

}
